package com.woniuxy.commons.exception.code;

public enum FoodExceptionCode {
    FOOD_NOT_ID("菜品id未找到", 5100),
    FOOD_NOT_STOREDID("商铺id未录入", 5101),
    FOOD_NOT_NAME("菜品名称未录入", 5102),
    FOOD_NOT_PRICE("菜品价格未录入或价格不能为负数", 5103),
    FOOD_NOT_PHOTO("菜品展示图片未录入", 5104),
    FOOD_NOT_STORED("该商铺不存在", 5105),
    FOOD_NOT_PRODUCT("该餐品不存在", 5106),
    FOOD_HAS_UP("菜品已经上架了", 5107),
    FOOD_HAS_OFF("菜品已经下架了", 5108);

    private Integer code;
    private String message;

    FoodExceptionCode(String message, Integer code) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
